package com.fanxuankai.boot.mqbroker.autoconfigure;

import com.dingtalk.api.request.OapiRobotSendRequest;

import java.util.Collections;
import java.util.Map;

/**
 * 钉钉配置参数
 *
 * @author fanxuankai
 */
public class DingTalk {
    /**
     * 是否开启
     */
    private boolean enabled;
    /**
     * url
     */
    private String url;
    /**
     * 访问令牌
     */
    private String accessToken;
    /**
     * 密钥
     */
    private String secret;
    /**
     * 环境
     */
    private String env;
    /**
     * at 配置
     * key: topic value: OapiRobotSendRequest.At
     */
    private Map<String, OapiRobotSendRequest.At> at = Collections.emptyMap();

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public Map<String, OapiRobotSendRequest.At> getAt() {
        return at;
    }

    public void setAt(Map<String, OapiRobotSendRequest.At> at) {
        this.at = at;
    }
}